// loading的left动态改变
body.showSlide .el-loading-mask {
  top: 80px !important;
  left: 180px !important;
  transition: left .28s;
}

body.closeSlide .el-loading-mask {
  left: 54px !important;
  transition: left .28s;
}

body.showSlide .el-loading-mask.is-fullscreen,
body.closeSlide .el-loading-mask.is-fullscreen {
  z-index: 5 !important;
}

// 全局覆盖loading  参数配置
body.allScreen .el-loading-mask {
  top: 0px !important;
  left: 0px !important;
  transition: left .28s;
}

body.allScreen .el-loading-mask.is-fullscreen {
  z-index: 9999 !important;
}

.el-loading-mask.is-fullscreen .el-loading-spinner {
  width: 230px;
  background: #fff;
  display: flex;
  padding: 10px 15px;
  border-radius: 4px;
  left: 50%;
  transform: translateX(-50%);

  i {
    width: 42px;
    height: 24px;
  }
}

.el-loading-spinner .el-loading-text,
.el-icon-loading:before {
  color: #000 !important;
}

.cron-class {
  p {
    padding-left: 20px;
  }
}

.el-icon-loading:before {
  color: #000;
  font-size: 25px;
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.downlond-file-list {
  .upload-demo {
    position: relative;
  }

  .el-upload-list {
    position: absolute;
    left: 80px;
    top: -5px;
  }
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

// 按钮全局样式
.el-button--mini {
  padding: 8px 15px !important;
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

// 菜单管理
.is-disbale {
  .el-form-item__label {
    margin-top: 2px;
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

/************************复写element样式************************/
//mini框  下拉、输入框
.el-input--mini,
.el-input,
.el-select,
.el-select--mini {
  max-width: 220px !important;
  width: 100%;

  .el-input__inner {
    height: 30px !important;
    line-height: 30px;
  }
}

.el-select,
.el-cascader {
  .el-input {
    .el-input__suffix {

      .el-icon-arrow-up,
      .el-icon-arrow-down {
        color: #333 !important;
        font-weight: bold !important;
      }
    }
  }
}

//表格样式复写
.el-table__empty-block {
  min-height: 37px !important;

  .el-table__empty-text {
    line-height: 37px !important;
  }
}

.el-table--fit {
  // border-right: 1px solid $borderColor !important;
  padding-bottom: 1px;
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #f9f9f9 !important;
}

.el-table {

  thead th {
    color: #000;
    padding: 6px 0;
    font-family: 'HelveticaBlod';

    .caret-wrapper {
      height: 22px;

      .sort-caret.ascending {
        top: -1px;
      }

      .sort-caret.descending {
        bottom: 1px;
      }
    }
  }

  td {
    padding: 6px 0 !important;

    &:first-child {
      padding-left: 10px
    }

    .el-table__expand-icon {
      margin-left: -8px;

      i {
        color: #333;
        font-weight: bold;
        font-size: 14px;
      }
    }

    :last-child {
      .svg-icon {
        cursor: pointer;
        margin-right: 14px;


      }

      >span:last-child {
        .svg-icon {
          margin-right: 0;
        }
      }
    }

  }

  .el-button {
    padding: 0 5px;

    +.el-button {
      margin-left: 0;
    }
  }


  .el-table__body tr.el-table__row {
    >td {
      // border-top: 1px solid $borderColor;
      border-bottom: 1px solid transparent !important;

      &:first-child {
        border-left: 1px solid transparent;
      }

      &:last-child {
        border-right: 1px solid transparent;
      }
    }

    &:hover {
      +tr.el-table__row {
        >td {
          border-top-color: transparent;
        }
      }
    }
  }

  .el-table__body tr.el-table__row {
    &:first-child {
      >td {
        border-top: 1px solid transparent !important;
      }
    }
  }

}

//分页
.el-pagination.is-background {
  text-align: center;
  margin-top: 30px;

  button,
  span:not([class*=suffix]) {
    height: 30px !important;
    line-height: 30px !important;
  }

  .el-pagination__total {
    padding-top: 2px;
  }

  .btn-prev,
  .btn-next {
    padding: 0 16px !important;
    background: #fff !important;
    // border: 1px solid $borderColor;
    margin: 0 !important;
    border-right: transparent;

  }

  .btn-prev {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .el-pager li {
    // border: 1px solid $borderColor;
    border-radius: 0 !important;
    border-right: transparent;
    margin: 0 !important;
    padding: 0 12px;
    height: 30px;
    line-height: 30px;

    &:not(.active) {
      background: #fff !important;
    }
  }

  .btn-next {
    // border-right: 1px solid $borderColor;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

  .el-pagination__jump {
    margin-left: 0;

    .el-pagination__editor {
      height: 30px;
      line-height: 30px;
    }

    .el-pagination__editor.el-input .el-input__inner {
      height: 30px;
    }
  }
}

.upload-demo-pdm {
  .el-upload {
    width: 360px;
    height: 180px;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .el-icon-upload {
    font-size: 67px;
  }
}

.el-textarea .el-input__count {
  background: none !important;
  bottom: -20px !important;
  right: 0px !important;
  line-height: 16px;
}


//弹窗
.el-dialog__wrapper {
  .el-dialog {
    width: 820px !important;
  }

  .el-dialog__body {
    padding: 30px !important;
  }

  .el-dialog__footer {
    padding: 0 20px 30px 0 !important;
  }

  .el-dialog__header {
    background: #F2F3F8 !important;
    padding: 10px 20px !important;

    .el-dialog__title {
      color: #666 !important;
      font-weight: bold !important;
    }

    .el-dialog__headerbtn {
      top: 13px !important;

      i {
        color: #666 !important;
        font-size: 18px !important;
        font-weight: bold !important;
      }
    }

  }

  .dialog-footer {
    text-align: center !important;
  }
}

.project-detail {
  .data-base-output {
    .el-dialog__wrapper {
      .el-dialog__body {
        padding: 0px !important;
      }
    }
  }
}

.version-history {
  .data-base-output {
    .el-dialog__wrapper {
      .el-dialog__body {
        padding: 0px !important;
      }
    }
  }
}

.approve-list .el-dialog__wrapper .el-dialog {
  width: 70% !important;
}

//树
.el-tree {
  min-width: 100%;
  display: inline-block;

  .el-tree-node__content {
    &:hover {
      background-color: transparent;
    }
  }

  .el-icon-caret-right:before {
    font-size: 16px;
  }

  .el-tree-node__expand-icon.is-leaf.el-icon-caret-right:before {
    color: transparent;
  }
}

.el-tree--highlight-current .el-tree-node.is-current {
  >.el-tree-node__content {

    background-color: transparent !important;
    font-weight: bold;



    .el-tree-node__expand-icon.is-leaf {
      color: transparent;
    }
  }
}


//menu下单title
.el-submenu__title,
.el-menu-item {
  >span {
    position: relative;
    top: -2px;
  }
}

// tab组件
.el-dialog {

  .el-tabs__nav-scroll {
    background: rgba(242, 242, 242, 1);
  }

  .el-tabs--card>.el-tabs__header .el-tabs__item.is-active {
    background: #fff;
    // color: #333;
  }
}


//pop
.el-tooltip__popper.is-light {
  padding: 4px 8px;
  border-radius: 0;
}

// 必填验证*
.el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before {
  margin-right: 10px !important;
}


//危险颜色  红色
.svg-icon.dangerous {
  color: #df0011 !important;
}

.fontHel {
  font-family: 'Helvetica' !important;
}


.el-popup-parent--hidden {
  overflow: hidden
}

.el-menu--popup {
  padding: 0 !important;
}

#app .el-form .el-form-item,
.el-dialog .el-form-item {
  margin-bottom: 20px;
}
